<?php /* Smarty version 2.6.20, created on 2017-07-30 15:48:31
         compiled from search.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'search.htm', 94, false),array('modifier', 'date_format', 'search.htm', 121, false),array('modifier', 'get_spot_name', 'search.htm', 122, false),)), $this); ?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>搜索</title>
    <script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/js/jquery-min.js"></script>
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/indexamazeui.css" rel="stylesheet" />
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/m_base.css" rel="stylesheet" />
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/style.css" rel="stylesheet" />
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/indexstyle.css" rel="stylesheet" />

</head>
<body>
<style>
    .header_top {
        height: 50px;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #f37b1d;
        box-shadow: 0 -1px 1px #eee;
        background: #F85709;
    }
    .st_back {
        position: absolute;
        left: 10px;
        width: 30px;
        height: 30px;
    }
    .st_back a {
        float: left;
        width: 30px;
        height: 24px;
        margin-top: 3px;
        background: url(<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/images/st_user_ico.png) no-repeat 0 0;
        background-size: 355px auto;

    }
    .header_top .tit {
        padding: 0;
        margin: 0;
        color: #fff;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 500;
    }
</style>
<div class="home_top clearfix header_top">
    <div class="st_back"><a href="javascript:;" onclick="javascript:history.go(-1);"></a></div>
    <h1 class="tit">搜索</h1>
    <div class="user_login">
        <?php if (! empty ( $this->_tpl_vars['buid'] )): ?>
        <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/main.php?action=logout"><i class="ico_05"></i>退出</a>
        <?php else: ?>
        <a class="" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/login.php">登录/</a>
        <a class="" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/register.php">注册</a>
        <?php endif; ?>

    </div>
</div>

<div class="m-main">
    <form name="search_fm" id="search_fm" action="<?php echo $this->_tpl_vars['config']['weburl']; ?>
" method="get" >
        <input type="hidden" name="m" value="product"/>
        <input type="hidden" name="s" value="search"/>
        <div class="head_search">
            <table>
                <tr><td width="55px">
                    <select name="typeid" class="type-sel">
                        <option value="">全部</option>
                        <option value="1" <?php if ($this->_tpl_vars['typeid'] == 1): ?> selected <?php endif; ?>  >文章</option>
                        <option value="2" <?php if ($this->_tpl_vars['typeid'] == 2): ?> selected <?php endif; ?>  >场馆</option>
                        <option value="3" <?php if ($this->_tpl_vars['typeid'] == 3): ?> selected <?php endif; ?>  >演出</option>
                    </select></td>
                    <td><input type="text" class="s_text" name="keyword" id="keyword" value="<?php echo $this->_tpl_vars['keyword']; ?>
" placeholder="请输入关键字" /></td>
                    <td width="80px"><a href="javascript:;" id="search" class="s_btn">搜索</a></td>
                </tr></table>
    </form>
</div>

<div class="fex">
    <!--list开始-->
    <?php $_from = $this->_tpl_vars['info']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
    <div class="pdt_list">
        <?php if ($this->_tpl_vars['typeid'] == 1): ?>
        <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=news&s=detail&id=<?php echo $this->_tpl_vars['vo']['nid']; ?>
">
            <div class="pdt_img"><img src="<?php echo $this->_tpl_vars['vo']['titlepic']; ?>
" width="110" height="148"></div>
            <div class="pdt_txt">
                <div class="pdt_box">
                    <p class="p_tit">
                        <em><i class="bq bg_2c"></i><?php echo $this->_tpl_vars['vo']['title']; ?>
</em>
                        <span><?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['ftitle'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100, '...') : smarty_modifier_truncate($_tmp, 100, '...')); ?>
</span>
                    </p>
                </div>
            </div>
            <?php elseif ($this->_tpl_vars['typeid'] == 2): ?>

            <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=spot&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
">
                <div class="pdt_img"><img src="<?php echo $this->_tpl_vars['vo']['picurl']; ?>
" width="110" height="148"></div>

                <div class="pdt_txt">
                    <div class="pdt_box">
                        <p class="p_tit">
                            <em><i class="bq bg_2c"></i><?php echo $this->_tpl_vars['vo']['spot_name']; ?>
</em>
                            <span><?php echo $this->_tpl_vars['vo']['address']; ?>
</span>
                        </p>
                    </div>
                </div>

                <?php elseif ($this->_tpl_vars['typeid'] == 3): ?>

                <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
">
                    <div class="pdt_img"><img src="<?php echo $this->_tpl_vars['vo']['pic']; ?>
" width="110" height="148"></div>  <!--90 110-->
                    <div class="pdt_txt">
                        <div class="pdt_box">
                            <p class="p_tit">
                                <em><i class="bq bg_2c"></i><?php echo $this->_tpl_vars['vo']['pname']; ?>
</em>
                                <span><?php echo $this->_tpl_vars['vo']['ftitle']; ?>
</span>
                                <span>时间：<?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['performance_start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
 </span>
                                <span>场馆：<?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['spot'])) ? $this->_run_mod_handler('get_spot_name', true, $_tmp) : get_spot_name($_tmp)); ?>
</span>
                                <span>票价：<strong class="price"><?php echo $this->_tpl_vars['vo']['price']; ?>
</strong></span>
                                <?php if ($this->_tpl_vars['vo']['discount'] > 0): ?>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c4"><?php echo $this->_tpl_vars['vo']['discount']; ?>
折</em></span>
                                <?php endif; ?>

                                <?php if ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['vo']['reserve_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['vo']['sell_time'] || empty ( $this->_tpl_vars['vo']['sell_time'] )): ?>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">预售中</em></span>

                                <?php elseif (! empty ( $this->_tpl_vars['vo']['sell_time'] ) && $this->_tpl_vars['now_time'] >= $this->_tpl_vars['vo']['sell_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['vo']['performance_end_time']): ?>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">销售中</em></span>

                                <?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['vo']['performance_end_time']): ?>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c3">已结束</em></span>
                                <?php endif; ?>


                                <!--<?php if ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['reserve_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['sell_time']): ?>-->
                                <!--<span class="tag tag-c2">预售中</span>-->
                                <!--<?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['sell_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['performance_end_time']): ?>-->
                                <!--<span class="tag tag-c2">售票中</span>-->
                                <!--<?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['performance_end_time']): ?>-->
                                <!--<span class="tag tag-c3">已结束</span>-->
                                <!--<?php endif; ?>-->




                            </p>
                        </div>
                    </div>

                    <?php else: ?>

                    <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=news&s=detail&id=<?php echo $this->_tpl_vars['vo']['nid']; ?>
">
                        <div class="pdt_img"><img src="<?php echo $this->_tpl_vars['vo']['titlepic']; ?>
" width="110" height="148"></div>
                        <div class="pdt_txt">
                            <div class="pdt_box">
                                <p class="p_tit">
                                    <em><i class="bq bg_2c"></i><?php echo $this->_tpl_vars['vo']['title']; ?>
</em>
                                    <span class="h_40"><?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['ftitle'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100, '...') : smarty_modifier_truncate($_tmp, 100, '...')); ?>
</span>
                                </p>
                            </div>
                        </div>

           <?php endif; ?>

        </a>
    </div>
    <?php endforeach; endif; unset($_from); ?>
  
    <!--list结束-->

    <div class="page">
        <?php echo $this->_tpl_vars['info']['page']; ?>

    </div>

</div>

</div>

<script type="text/javascript">

    $("#search").click(function(){

        var keyword = $("#keyword").val();
        if(keyword == ''){
            alert("关键词不能为空");
            return false;
        }

        $("#search_fm").submit();
    });

</script>

<!--<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>-->

</body>
</html>